Format input date in datagridview

A common problem faced in datagridview is how to format the date in the grid, here is a small way to do it: Private Sub dataGridView1_CellParsing(ByVal sender As Object, ByVal e As DataGridViewCellParsingEventArgs) If e.ColumnIndex = 0 Then Dim [date] As String = DirectCast(e.Value, String) Try Dim month As String = [date].Substring(0, 2) Dim day … Continue reading Format input date in datagridview